package com.lucun.es_transaction.service;

import com.lucun.es_transaction.entity.Coupon;
import com.lucun.es_transaction.mapper.CouponMapper;
import com.lucun.es_transaction.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author: 郭鑫
 * @catalogue: com.lucun.es_transaction.service
 * @Date: 2021/6/8 9:14
 * @Version: 1.0
 */
public interface CouponService {
//    查询
    List<Coupon> findAll();
//添加优惠券
    JsonResult<?> insert(Coupon coupon, HttpServletRequest request);
}
/*  测试*/